import { ajax } from '../http.js';

const freeStoreJoinUrl = '/authc/user_upgrade_apply/free_store_join';// 免费商户入驻
const getFreeStoreListUrl = '/authc/user_upgrade_apply/find_free_use_detail'; // 获取免费商户列表
const getFreeStoreNumberUrl = '/authc/user_upgrade_apply/find_free_number'; // 获取使用名额

const freeStoreJoin = (data, success, fail) => // 免费商户入驻
  ajax({
    url: freeStoreJoinUrl,
    data: data,
    success: success,
    fail: fail
});

const getFreeStoreListApi = (data, success, fail) => // 免费商户入驻
  ajax({
    url: getFreeStoreListUrl,
    data: data,
    success: success,
    fail: fail
});
const getFreeStoreNumberApi = (data, success, fail) => // 获取使用名额
  ajax({
    url: getFreeStoreNumberUrl,
    data: data,
    success: success,
    fail: fail
});

export {
  freeStoreJoin,
  getFreeStoreListApi,
  getFreeStoreNumberApi
}